package br.xraylol.client;

import org.springframework.stereotype.Component;

import br.xraylol.constant.ServiceType;
import br.xraylol.custom.list.GameList;

@Component
public class GameClient extends GenericClient {
	
	public GameClient() {
		super(ServiceType.GAME);
	}
	
	public GameList findRecentGamesBySummoner(Long summonerId) {
		return findAll("/by-summoner/" + summonerId + "/recent", GameList.class);
	}
}
